//
//  NSDate+Main.m
//  SmallCharge
//
//  Created by karry on 2021/4/22.
//

#import "NSDate+Main.h"

@implementation NSDate (Main)


- (NSString *)chineseMonthString{
    
    NSInteger i = [self jk_month];
    
    NSArray *months = @[@"月",@"一月",@"二月",@"三月",@"四月",@"五月",@"六月",@"七月",@"八月",@"九月",@"十月",@"十一月",@"十二月"];
    if (DTLanguageManager.sharedDTLanguageManager.isChinese) {
        months = @[@"月",@"一月",@"二月",@"三月",@"四月",@"五月",@"六月",@"七月",@"八月",@"九月",@"十月",@"十一月",@"十二月"];
    }else if (DTLanguageManager.sharedDTLanguageManager.isJapanese) {
        months = @[@"月",@"一月",@"二月",@"三月",@"四月",@"五月",@"六月",@"七月",@"八月",@"九月",@"十月",@"十一月",@"十二月"];
    }else if (DTLanguageManager.sharedDTLanguageManager.isKorean) {
        months = @[@"월",@"1월",@"2월",@"3월",@"4월",@"5월",@"6월",@"7월",@"8월",@"9월",@"10월",@"11월",@"12월"];
    }else {
        months = @[@"month",@"January",@"February",@"March",@"April",@"May",@"June",@"July",@"August",@"September",@"October",@"November",@"December"];
    }
    return months[i];

}



@end
